package com.acme.bankapp.domain.email;

import java.awt.Window.Type;

import com.acme.bankapp.domain.exceptions.EmptyEmailBoxException;
import com.acme.bankapp.domain.exceptions.MailCantBeAdded;

public interface Queue <Type> {

	public Type getItem() throws EmptyEmailBoxException;

	public void close();
	
	public boolean isClosed();

	void addItem(Type email) throws MailCantBeAdded;
}
